import request from '@/utils/request'
/**
 * @description 登录API
 * @param {Object} data mobile password
 * @returns Promise 
 */
export function loginAPI(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}
/**
 * @description 获取用户基本信息API
 * @returns Promise
 */
export function getInfoAPI() {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}
/**
 * @description 获取用户头像API
 * @param {String} id 
 * @returns Promise
 */
export function getUserAvatarAPI(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'GET'
  })
}

